package com.morehair.mapper;

import com.morehair.bean.pojo.AllPermissionPojo;
import com.morehair.bean.vo.admin.OptionVo;

import java.util.List;

/**
 * Author  kkw
 * Date  2021/6/4 21:16
 * Version 1.0
 * Description :
 */
public interface SystemMapper {
    Integer selectAllGoodsNum();

    Integer selectAllUserNum();

    Integer selectAllProductNum();

    Integer selectAllOrderNum();


    List<OptionVo> selectAllRole();

    int selectAdminByUsername(String username);

    int selectRoleByName(String name);

    int selectAdminIdByUsername(String username);

    int selectRoleIdByName(String name);

    List<AllPermissionPojo> selectAllPermissionByType(int i);


    List<String> selectPermissionByRoleId(Integer roleId);

    List<AllPermissionPojo> selectAllPermissinBetweenCode(int min, int max);


    List<String> selectAdminRoleId();

    String selectAdminRoleIdByUserName(String username);

    int deletePermissionByRoleId(Integer id);

    String selectPermissionApiByName(String permission);

    int selectAdminNumByUsername(String username);

}
